from django.http import HttpResponse
from django.shortcuts import render_to_response
from django.template import Template, Context
from django.template.loader import get_template


def main(request):
    url = request.get_host()
    t = get_template('main.html')
    html = t.render(Context({'URL': url}))
    return HttpResponse(html)
